messages = {
	{
		define = "struct", name = "DBProgress",
		attributes =
		{
			{type="int8", name="cid", default = 0},
			{type="int8", name="did", default = 0},
			{type="int8", name="sid", default = 0},
			{type="int8", name="data", default = 0},
		}
	},
	{
		define = "msg", name="LoadProgresss", category = "Msg::MC_DB_Progress", id = 1, base = "DBMessage",
		 attributes =
		 {
			 {type="int32", name = "pid", default = 0},
			 {type="DBProgress", name = "progresss", list = true},
		 },
		 handler =
		 {
			 sql = "load_progresss(%d)",
			 input = {"pid"},
			 output={list = true, type = "DBProgress", variable = "progresss","cid", "did","sid", "data"}
		 }
	},
	{
		define = "msg", name="UpdateProgress", category = "Msg::MC_DB_Progress", id = 3, base = "DBMessage",
		 attributes =
		 {
			 {type="int32", name = "pid", default = 0},
			 {type="DBProgress", name = "progress"},
		 },
		 handler =
		 {
			 sql = "update_progress(%d, %d, %d, %d, %d)",
			 input = {variable="progress","pid", "cid", "did","sid", "data"},
		 }
	},
	{
		define = "msg", name="RemoveProgress", category = "Msg::MC_DB_Progress", id = 4, base = "DBMessage",
		 attributes =
		 {
			 {type="int32", name = "pid", default = 0},
			 {type="int8", name = "cid", default = 0},
			 {type="int8", name = "did", default = 0},
			 {type="int8", name = "sid", default = 0},
		 },
		 handler =
		 {
			 sql = "remove_progress(%d, %d, %d, %d)",
			 input = {"pid", "cid", "did", "sid"},
		 }
	 },
}

